package com.java1412.json.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.java1412.json.mapper.ImsTreeJsonMapper;
import com.java1412.json.domain.ImsTreeJson;
import com.java1412.json.service.IImsTreeJsonService;

/**
 * json树Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-25
 */
@Service
public class ImsTreeJsonServiceImpl implements IImsTreeJsonService 
{
    @Autowired
    private ImsTreeJsonMapper imsTreeJsonMapper;

    /**
     * 查询json树
     * 
     * @param id json树主键
     * @return json树
     */
    @Override
    public ImsTreeJson selectImsTreeJsonById(Long id)
    {
        return imsTreeJsonMapper.selectImsTreeJsonById(id);
    }

    /**
     * 查询json树列表
     * 
     * @param imsTreeJson json树
     * @return json树
     */
    @Override
    public List<ImsTreeJson> selectImsTreeJsonList(ImsTreeJson imsTreeJson)
    {
        return imsTreeJsonMapper.selectImsTreeJsonList(imsTreeJson);
    }

    /**
     * 新增json树
     * 
     * @param imsTreeJson json树
     * @return 结果
     */
    @Override
    public int insertImsTreeJson(ImsTreeJson imsTreeJson)
    {
        return imsTreeJsonMapper.insertImsTreeJson(imsTreeJson);
    }

    /**
     * 修改json树
     * 
     * @param imsTreeJson json树
     * @return 结果
     */
    @Override
    public int updateImsTreeJson(ImsTreeJson imsTreeJson)
    {
        return imsTreeJsonMapper.updateImsTreeJson(imsTreeJson);
    }

    /**
     * 批量删除json树
     * 
     * @param ids 需要删除的json树主键
     * @return 结果
     */
    @Override
    public int deleteImsTreeJsonByIds(Long[] ids)
    {
        return imsTreeJsonMapper.deleteImsTreeJsonByIds(ids);
    }

    /**
     * 删除json树信息
     * 
     * @param id json树主键
     * @return 结果
     */
    @Override
    public int deleteImsTreeJsonById(Long id)
    {
        return imsTreeJsonMapper.deleteImsTreeJsonById(id);
    }
}
